package com.k.kpp.util.rpc.netty.model;

import com.k.kc.util.DateUtils;
import com.k.kpp.util.rpc.netty.XMLUtils;
import org.apache.commons.collections4.MapUtils;
import org.apache.commons.lang.ObjectUtils;
import org.springframework.beans.BeanUtils;

import javax.xml.bind.JAXBException;
import java.io.UnsupportedEncodingException;

/**
 * @author k
 */
public class DataChangeProtocol {
    public static String getProtocelDataUpdateReq(String guid){
        String xml = "<xml>"
                +"<guid>"+guid+"</guid>"
                +"</xml>";
        return xml;
    }
    public static String getProtocolDataUpdateAck(String guid){
        String xml = "<xml>"
                +"<guid>"+guid+"</guid>"
                +"<from>"+"server"+"</from>"
                +"</xml>";
//        MapUtils.to
//        BeanUtils.
        return xml;
    }
}
